package com.demo.study.java.abstractTest;

import java.util.ArrayList;
import java.util.List;

public class abstractTestMain {


    public static void main(String[] args) {
        String database = "my_database";
        String table = "my_table";
        List<String> columns = new ArrayList<>();
        columns.add("id INT");
        columns.add("name VARCHAR(255)");
        columns.add("age INT");
        CreateTableStatement impalaStatement = new ImpalaCreateTableStatement(database, table, columns);
        String impalaCreateTableStatement = impalaStatement.generateCreateTableStatement();
        System.out.println("Impala: " + impalaCreateTableStatement);
        CreateTableStatement oracleStatement = new OracleCreateTableStatement(database, table, columns);
        String oracleCreateTableStatement = oracleStatement.generateCreateTableStatement();
        System.out.println("Oracle: " + oracleCreateTableStatement);
    }
}